package com.hymjweb.demo.hymj.log_manage.bean;

import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author DaTing created on 2020-09-17
 *
 * create table xt_backup_log_msg
 * (
 * 	ID varchar(50) not null,
 * 	TABLE_NAME varchar(255) not null comment '查询实体类对应的表名称,必须存大写格式,日志的显示体现位置',
 * 	TABLE_ID varchar(19) null comment '查询实体类实例ID',
 * 	OPER_TITLE varchar(255) null comment '操作主题',
 * 	OPER_MEMO varchar(4000) null comment '操作备注',
 * 	BACKUP_LOG_MSG blob null comment '数据变动日志',
 * 	POJO_NAME varchar(255) null comment '对应的实体类名称',
 * 	CREATE_TIME datetime null,
 * 	CREATE_USER_ID varchar(50) null comment '记录添加人ID,关联XT_USER.ID',
 * 	CREATE_USER_NAME varchar(50) null comment '记录添加人姓名',
 * 	CREATE_TIME_SHORT int(19) null
 * );
 **/

@Table(name = "xt_backup_log_msg")
@Data
public class XtBackupLogMsgPojo implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 281741640298643220L;

    @FieldMeta(columnname = "id")
    private String id;

    @FieldMeta(columnname = "table_id", name = "表ID")
    private String tableId;

    @FieldMeta(columnname = "table_name", name = "表名称")
    private String tableName;

    @FieldMeta(columnname = "pojo_name", name = "对应的实体类名称")
    private String pojoName;

    @FieldMeta(columnname = "oper_title", name = "操作主题")
    private String operTitle;

    @FieldMeta(columnname = "oper_memo", name = "操作备注")
    private String operMemo;

    @FieldMeta(columnname = "backup_log_msg", name = "数据变动日志")
    private byte[] backupLogMsg;

    private String backupLogMsgInfo;

    @FieldMeta(columnname = "create_time", name = "记录创建时间")
    private Date createTime;

    @FieldMeta(columnname = "create_user_id", name = "记录添加人ID", comment = "关联XT_USER.ID")
    private String createUserId;

    @FieldMeta(columnname = "create_user_name", name = "记录添加人姓名")
    private String createUserName;

    @FieldMeta(columnname = "create_time_short", name = "记录创建时间", comment = "YYYYMMDD格式")
    private Long createTimeShort;

}
